package de.tum.in.far.threedui.general;

import javax.media.j3d.Appearance;
import javax.media.j3d.Transform3D;
import javax.media.j3d.TransformGroup;
import javax.vecmath.Vector3f;

import com.sun.j3d.utils.geometry.Box;
import com.sun.j3d.utils.geometry.Primitive;


public class CubeObject extends TransformableObject {
	
	public CubeObject(Appearance app) {
//		Sphere iAmASphereButIllBeABoxSoon = new Sphere(0.005f, app);
		float boxSide = .023f;
		Box box = new Box(boxSide, boxSide, boxSide, Primitive.GENERATE_NORMALS +

				Primitive.GENERATE_TEXTURE_COORDS, app);
//		Transform3D t3d = new Transform3D();
//		t3d.setTranslation(new Vector3f(0, 0, boxSide));
//		TransformGroup tg = new TransformGroup(t3d);
//		tg.addChild(box);
		transGroup.addChild(box);
//		transGroup.addChild(new CoordinatesMarker());
	}

	
}
